package Control;

import java.awt.BorderLayout;

import javax.swing.JFrame;
import javax.swing.SwingUtilities;

import View.ChessPanel;
import View.LoginPanel;

public class MainFrame extends JFrame {
	private static final long serialVersionUID = 1L;

	public MainFrame() {
		setTitle("五子棋游戏");
		setVisible(true);
		setSize(1000, 800);setDefaultCloseOperation(EXIT_ON_CLOSE);
		setLocationRelativeTo(null);;
		
		setLayout(new BorderLayout());
		ChessPanel chessPanel=new ChessPanel();
		add(chessPanel,BorderLayout.CENTER);
		
		
		
	LoginPanel loginPanel=new LoginPanel();
	setGlassPane(loginPanel);
	loginPanel.setVisible(true );
	

	}

	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			@Override
			public void run() {
				new MainFrame();
			}
		});
	}
}